<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>样式的继承</title>
</head>
<body>
<div style="color: red;">
    这是div
    <p style="color:green;">这是div中段落</p>
    <span>这是div中的span</span>
</div>
<p>这是段落</p>
<span>这是span</span>
</body>
</html>